package a05;

import org.mybatis.spring.mapper.MapperScannerConfigurer;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.config.BeanDefinitionCustomizer;
import org.springframework.context.annotation.ConfigurationClassPostProcessor;
import org.springframework.context.support.GenericApplicationContext;

public class TestMyComponentScanPostProcessor {
    public static void main(String[] args) {
        GenericApplicationContext context = new GenericApplicationContext();
        context.registerBean(MyComponentScanPostProcessor.class);

        context.refresh();  //会调用BeanFactory后处理器、Bean的初始化等
        for (String name : context.getBeanDefinitionNames()) {
            System.out.println(">>>" + name);
        }
    }
}
